home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6867 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.aracnet.com!news
  2. From: acs@aracnet.com (ACS)
  3. Newsgroups: comp.lang.c
  4. Subject: [HELP] TOOL FOR REMOVING TOO MANY #ifdef's
  5. Date: 15 Feb 1996 21:38:58 GMT
  6. Organization: aracnet.com -- Portland's loudest electrons
  7. Message-ID: <4g095i$ld4@cobweb.aracnet.com>
  8. NNTP-Posting-Host: ppp-m16.aracnet.com
  9. Mime-Version: 1.0
  10. X-Newsreader: WinVN 0.99.3
  11.  
  12. Hi,
  13.  
  14. I was given a huge "PORTABLE" C/C++ source code that's supposed to compile 
  15. under DOS, Unix, Windows, etc.  I am currently adding some features while 
  16. porting the source set to Windows95.  Of course I am having quite a bit of 
  17. problems.
  18.  
  19. The task of adding new features and building a new Win95 port is IMMENSELY 
  20. exacerbated because the source set has a huge number of #ifdef's for various 
  21. OS/Version/features builds. And frankly, I have no idea at all what some of 
  22. these #ifdef's mean (Ex. #ifdef _PRACTICAL).
  23.  
  24. What I would like to do is "SELECTIVELY PREPROCESS THE SOURCE WITHOUT 
  25. SUBSTITUTING MACROS". This way I figure I could reduce the size of the 
  26. source set by 50%, and make it more intellible. I tried GNU CPP, but I could 
  27. not find a way "NOT TO SUBSTITUTE MACROS".
  28.  
  29. Could anyone point me to a tool that does
  30.    "SELECTIVELY PREPROCESS THE SOURCE WITHOUT SUBSTITUTING MACROS"
  31.  
  32. Thanks, Adrian
  33.  
  34.